-
-
Notifications
You must be signed in to change notification settings - Fork 4
Update for Swift 6 #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
.library( | ||
name: "ElasticsearchNIOClient", | ||
targets: ["ElasticsearchNIOClient"]), | ||
name: "Elasticsearch", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should probably keep the client suffix
let (dockerResult, _) = shell("docker", "run", "--name", containerName, "-p", "\(port):9200", "-e", "discovery.type=single-node", "-e", "ES_JAVA_OPTS=-Xms256m -Xmx256m", "-d", "docker.elastic.co/elasticsearch/elasticsearch:7.6.2") | ||
let (dockerResult, _) = shell( | ||
"docker", "run", "--name", containerName, "-p", "\(port):9200", "-e", "discovery.type=single-node", "-e", | ||
"ES_JAVA_OPTS=-Xms256m -Xmx256m", "-d", "docker.elastic.co/elasticsearch/elasticsearch:7.6.2") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can probably bump the ElasticSearch version
var client: ElasticsearchClient! | ||
var httpClient: HTTPClient! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do these need to be IUOs now?
} | ||
|
||
@Test | ||
func testURLSetup() async throws { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably be 2 tests with parameterised tests
} | ||
|
||
if let body { | ||
self.logger.trace("Request body: \(body)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should log the rest of the parts of the request as well
No description provided.